package Javatest2;

import java.util.Scanner;

public class test3 {
    public static void main(String[] args) {
        int a=1,b=5,c=7,max;

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数");
         a = scanner.nextInt();
        System.out.println("请输入一个整数");
         b = scanner.nextInt();
        System.out.println("请输入一个整数");
        c = scanner.nextInt();


        max=a>b?(a>c?a:c):(b>c?b:c);
        System.out.println("max = " + max);
    }

}
